package com.wzh.design.newDesignPattern.observerPattern;

import com.wzh.db.Stu;

public class ObserverPatternDemo {
   public static void main(String[] args) {
      Student student = new Student();
 
      new HexaObserver(student);
      new OctalObserver(student);
      new BinaryObserver(student);
 
      System.out.println("First state change: 15");
       student.setState(15);
      System.out.println("Second state change: 10");
       student.setState(10);
   }
}